/**
 * 
 */
package com.lanswon.qzsmk.exception;

/**
 * @author sun
 *
 */
public class SystemException extends RuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3168069525747483899L;
	
	
	/**
	 * 转码异常
	 */
	public static final int UnsupportedEncodingException = 1;
	
	/**
	 * 二维码生成异常
	 */
	public static final int WriterException = 2;
	
	/**
	 * 系统IO流异常
	 */
	public static final int IOException = 3;
	
	/**
	 * 
	 */
	public static final int DocumentException = 4;
	
	/**
	 * 
	 */
	public static final int BadElementException = 5;
	
	/**
	 * 
	 */
	public static final int MalformedURLException = 6;
	
	/**
	 * 
	 */
	public static final int FileNotFoundException = 7;
	
	/**
	 * 
	 */
	public static final int IllegalStateException = 8;
	/**
	 * 
	 */
	public static final int ParseException = 9;
	
	/**
	 * 
	 */
	public static final int NoSuchAlgorithmException = 10;
	
	/**
	 * 
	 */
	public static final int BadHanyuPinyinOutputFormatCombination = 11;
//	
	/**
	 * 
	 */
	public static final int PrintException = 12;
	/**
	 * 
	 */
	public static final int CopyException = 13;
	
	/**
	 * 通信异常
	 */
	public static final int communication_exception = 14;

	private int errorCode;

	public SystemException(int code, String msg) {
		super(msg);
		this.errorCode = code;

	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "SystemException [errorCode=" + errorCode + "]";
	}
	
	
}
